class Fun:

    def lambda__(self):
        sum = lambda x, y: x+y
        print(sum(1, 2))

    def lambda2__(self):
        print((lambda x, y: x+y)(1,2))

    def yield__(self):
        for i in range(5):
            yield i


if __name__ == '__main__':
    fun = Fun()
    fun.lambda__()
    fun.lambda2__()
    y = fun.yield__()
    print(y)
    print(y.next())